package com.mediocre.common.enumeration;

import lombok.Data;

/**
 * @desc 返回结果的枚举
 * @author 张伟
 * @date 2022-1-2
 */
public enum RespResult {
    SUCCESS(200, "操作成功！"),
    FAILURE(210, "操作失败！");

    private final Integer code;
    private final String msg;

    RespResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
